<template>
	<div class="groups_dialog_moremenu">
		<ul class="dialog_content">
			<li v-if="item.typeId !== '10003'">
				<a href="javascript:;" v-if="!isgoods" @click="addGoodClickHandle">
					点赞
				</a>
				<a href="javascript:;" v-if="isgoods" @click="delGoodClickHandle">
					取消点赞
				</a>
			</li>
			<li>
				<a href="javascript:;" @click="showShareClickHandle">
					分享
				</a>
			</li>
			<li v-if="item.typeId !== '10003'">
				<a href="javascript:;" @click="searchSourceNewsClickHandle">
					同源新闻
				</a>
			</li>
			<!--li>
				<a href="javascript:;">
					menu title
				</a>
			</li-->
			<li>
				<a href="javascript:;" @click="dialogCloseHandle">
					关 闭
				</a>
			</li>
		</ul>
	</div>
</template>
<script>
	export default{
		name:"groups_dialog_moremenu",
		data:function(){
			return{}
		},
		props:["item", "isgoods"],
		mounted:function(){
			
		},
		methods:{
			dialogCloseHandle(e){
				this.$emit("dialogCloseHandle")
			},
			addGoodClickHandle(e){
				console.log('1')
				this.$emit("setFeedsDataIsGoods",this.$props.item.newsid, this.$props.item.type)
				this.$emit("dialogCloseHandle")
			},
			delGoodClickHandle(e){
				this.$emit("DelFeedsDataIsGoods",this.$props.item.newsid, this.$props.item.type)
				this.$emit("dialogCloseHandle")
			},
			showShareClickHandle(e){
				this.$emit("setDialogAndShow", "share", "dislog_in_up fadeInUp", true);
			},
			searchSourceNewsClickHandle(e){
				this.$emit("dialogCloseHandle")
				this.$router.push("/channel/"+this.$props.item.type)
			}
		}
	}
</script>
<style lang="less">
	@base:23.44/1rem;
	.groups_dialog_moremenu{
		ul{
			&.dialog_content{
				li{
					border-bottom:1/@base solid #efefef;
					margin:0;
					a{
						text-decoration: none;
						color:#333;
						text-align: center;
						padding:16/@base 0;
						display: block;
						border-radius: 10/@base;
					}
					&:last-child{
						border:0;
						background-color: #efefef;
						a{
							color:#333;
						}
					}
				}
			}
		}
	}
</style>